//
//  FN6TableViewCell.m
//  MaJangJi
//
//  Created by 嗯，大葱 on 16/9/9.
//  Copyright © 2016年 嗯，大葱. All rights reserved.
//

#import "FN6TableViewCell.h"
#define k_Width      [UIScreen mainScreen].bounds.size.width

#define h_Height     [UIScreen mainScreen].bounds.size.height
@implementation FN6TableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _txtLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 5, k_Width- 20, 40)];
        _txtLabel.textColor = [UIColor grayColor];
        _txtLabel.font = [UIFont systemFontOfSize:15];
        _txtLabel.text = @"dsajkfhsdahflhdasfdsafdbfdsabfnmdbajkfdsajfbsdmabfdsbafbfasbfdsajbfadsbfjsadbfsjadbfjksadbfjsdabfjsdba vmncabbvkcvm zxvjkbv ncmvbjkbvcxvbjzbvbabvabvjcbvzbvzxjvbjzxcbvjzbxvjbzjxbvjzbvjzbdsfdfdsfasdfdsfsdafasdfasfasfasfasfadsfafsafsdfsf";
        _txtLabel.numberOfLines = 2;
        [self.contentView addSubview:_txtLabel];
        
        
        _tempBtn = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _tempBtn.frame = CGRectMake(CGRectGetMaxX(_txtLabel.frame) - 40, CGRectGetMaxY(_txtLabel.frame), 50, 30);
        [_tempBtn setTitle:@"更多" forState:(UIControlStateNormal)];
        [_tempBtn setTitle:@"收回" forState:(UIControlStateSelected)];
        [_tempBtn setTitleColor:[UIColor redColor] forState:(UIControlStateNormal)];
        [_tempBtn setTitleColor:[UIColor redColor] forState:(UIControlStateSelected)];
        _tempBtn.titleLabel.font = [UIFont systemFontOfSize:15];
       
        [self.contentView addSubview:_tempBtn];
        
    }
    return self;

}



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
